package com.woniuxy.hotel.room.pojo;

import java.math.BigDecimal;
import java.util.List;

/**
 * 房间实体类
 */
public class Room {
    private Integer roomid;
    
    private Integer hotelid;

    private Integer roomnum;//房间号
    
    private Integer roomtypeid;//房间类型id
    
    private Double roomprice;//房价价格（原价）
    
    private Integer discount;//房间折扣，0是免费
    
    private Integer cashpledge;//押金（原价）
    
    private Integer roomstatus;//房间状态：1、空闲，2、预订状态，3、入住
    
    private Integer idcard;//入住身份证号/id
    
    private String roomtrait;//房间特点：多特点，数据库逗号隔开
    
    private HotelWithBLOBs hotel;   //所属酒店信息

    private List<Img> imgs; //房间图
    
    private RoomType roomType; //房间类型对象
    
    private String RoomType;
    
    private String rt;
    
    private String hn;
    
    private Integer roomFlag;
    
    
    
    public Integer getRoomFlag () {
        return roomFlag;
    }
    
    public void setRoomFlag (Integer roomFlag) {
        this.roomFlag = roomFlag;
    }
    
    public String getRt () {
        return rt;
    }
    
    public void setRt (String rt) {
        this.rt = rt;
    }
    
    public void setRoomType (String roomType) {
        RoomType = roomType;
    }
    
    public String getHn () {
        return hn;
    }
    
    public void setHn (String hn) {
        this.hn = hn;
    }
    
    public RoomType getRoomType () {
        return roomType;
    }
    
    public void setRoomType (RoomType roomType) {
        this.roomType = roomType;
    }
    
    public HotelWithBLOBs getHotel () {
        return hotel;
    }
    
    public void setHotel (HotelWithBLOBs hotel) {
        this.hotel = hotel;
    }
    
    public List<Img> getImgs () {
        return imgs;
    }
    
    public void setImgs (List<Img> imgs) {
        this.imgs = imgs;
    }
    
    @Override
    public String toString () {
        return "Room{" +
                "roomid=" + roomid +
                ", hotelid=" + hotelid +
                ", roomnum=" + roomnum +
                ", roomtypeid=" + roomtypeid +
                ", roomprice=" + roomprice +
                ", discount=" + discount +
                ", cashpledge=" + cashpledge +
                ", roomstatus=" + roomstatus +
                ", idcard=" + idcard +
                ", roomtrait='" + roomtrait + '\'' +
                ", imgs=" + imgs +
                '}';
    }
    


	public Integer getRoomid() {

        return roomid;
	}


	public void setRoomid(Integer roomid) {

        this.roomid = roomid;
    }
    
    public Integer getHotelid () {
        return hotelid;
    }
    
    public void setHotelid (Integer hotelid) {
        this.hotelid = hotelid;
    }
    
    public Integer getRoomnum () {
        return roomnum;
    }
    
    public void setRoomnum (Integer roomnum) {
        this.roomnum = roomnum;
    }
    
    public Integer getRoomtypeid () {
        return roomtypeid;
    }
    
    public void setRoomtypeid (Integer roomtypeid) {
        this.roomtypeid = roomtypeid;
    }
    
    public Double getRoomprice () {
        return roomprice;
    }
    
    public void setRoomprice (Double roomprice) {
        this.roomprice = roomprice;
    }
    
    public Integer getDiscount () {
        return discount;
    }
    
    public void setDiscount (Integer discount) {
        this.discount = discount;
    }
    
    public Integer getCashpledge () {
        return cashpledge;
    }
    
    public void setCashpledge (Integer cashpledge) {
        this.cashpledge = cashpledge;
    }
    
    public Integer getRoomstatus () {
        return roomstatus;
    }
    
    public void setRoomstatus (Integer roomstatus) {
        this.roomstatus = roomstatus;
    }
    
    public Integer getIdcard () {
        return idcard;
    }
    
    public void setIdcard (Integer idcard) {
        this.idcard = idcard;
    }
    
    public String getRoomtrait () {
        return roomtrait;
    }
    
    public void setRoomtrait (String roomtrait) {
        this.roomtrait = roomtrait == null ? null : roomtrait.trim();
    }
}